﻿using System.Data;
using ECM7.Migrator.Framework;

namespace music.domain.Migrations
{
	[Migration(10)]
	public class Migration010_RateValue : Migration
	{
		public override void Apply()
		{
			Database.AddColumn("Rates", new Column("RateValue", DbType.Int32, ColumnProperty.NotNull, 0));
			Database.RemoveColumn("Rates", "IsNegative");
		}

		public override void Revert()
		{
			Database.AddColumn("Rates", new Column("IsNegative", DbType.Boolean, ColumnProperty.NotNull, false));
			Database.RemoveColumn("Rates", "RateValue");
		}
	}
}